import {
  createWebHistory,
  createWebHashHistory,
  createRouter
} from "vue-router";
import Home from '../views/home.vue';
import User from '../views/user.vue';
const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/app-vue2',
      name: 'app-vue2',
      component: () => import('../views/vue2.vue'),
    },
    {
      path: '/app-vite:page*',
      name: 'vite',
      component: () => import('../views/vite.vue'),
    }
  ]
})
export default router;